import request from "../utils/request";

const API_NAME = '/message'

export function getMessage(uid,rid,start,length){
    return request({
        url: `${API_NAME}/get/${rid}/${uid}/${start}/${length}`,
        method: 'get'
    })
}

export function downloadMessage(rid){
    return request({
        url: `${API_NAME}/getExcel/${rid}`,
        method: 'get'
    })
}